.file-form-title {
  max-width: 225px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.file-icon-margin-left {
  margin-left: 8px;
}

.loading-project-info {
  margin-top: 180px;
  display: flex;
  justify-content: center;
}
// 导入中
.project-importing {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 40px;
  .waiting-text {
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    color: $gray-06;
  }
  &-placeholder {
    margin-top: 60px;
    text-align: center;
    height: 252px;
    img {
      width: 400px;
    }
  }
}
// 导入失败
.import-failed-page {
  height: calc(100vh - 91px);
  min-height: 350px;
  display: flex;
  margin: 0 auto;
  .at-error-page {
    margin-top: 0;
  }
  img {
    width: 350px !important;
  }
  .at-error-page-info {
    margin-left: 20px;
    &-title {
      margin-bottom: 16px;
    }
  }
}

@media screen and (max-width: 1920px) {
  .project-importing-placeholder img {
    width: 350px;
  }
}

.empty-init-project {
  margin-top: 40px;
  .empty-init-cards {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    &-item {
      background: #fff;
      border: 1px solid $gray-03;
      border-radius: 4px;
      flex: 1;
      min-height: 80px;
      margin-right: 20px;
      position: relative;
      padding: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      &.disabled {
        cursor: default;
      }
      .content {
        margin-left: 12px;
        z-index: 3;
      }
      &:last-child {
        margin-right: 0;
      }
      &::before {
        position: absolute;
        content: '';
        top: -1px;
        left: -1px;
        right: -1px;
        background-image: linear-gradient(270deg, #88d1ff 0%, #1f9aef 100%);
        height: 4px;
        border-radius: 4px 4px 0 0;
      }
      &.disabled::before {
        position: absolute;
        content: '';
        top: -1px;
        left: -1px;
        right: -1px;
        background-image: linear-gradient(270deg, #595959 0%, #595959 100%);
        height: 4px;
        border-radius: 4px 4px 0 0;
      }
      &-bg {
        position: absolute;
        bottom: 0;
        right: 20px;
        width: 100px;
        height: 86px;
        background-size: 100% 100%;
        z-index: 2;
        background-image: url('https://img.alicdn.com/tfs/TB1ThsRyxD1gK0jSZFKXXcJrVXa-280-240.png');
      }
      .title {
        text-align: left;
        line-height: 20px;
        font-weight: 500;
        font-size: 14px;
        color: $gray-08;
        position: relative;
        z-index: 3;
      }
      .desc {
        margin-top: 4px;
        text-align: left;
        line-height: 17px;
        font-size: 12px;
        color: $gray-06;
        display: none;
      }
      &:hover {
        box-shadow: 0 1px 3px 0 rgba(38, 38, 38, 0.1);
        border: 1px solid #87d2ff;
        align-items: flex-start;
        .title {
          margin-top: 2px;
        }
        .desc {
          display: block;
        }
      }
      &.disabled:hover {
        box-shadow: 0 1px 3px 0 rgba(38, 38, 38, 0.1);
        border: 1px solid $gray-03;
        align-items: flex-start;
        .title {
          margin-top: 4px;
        }
        .desc {
          display: block;
        }
      }
    }
  }
}

@media screen and (max-width: 1000px) {
  .empty-init-cards-item {
    min-height: 96px !important;
    &-bg {
      right: 0 !important;
    }
  }
}
.empty-title {
  text-align: left;
  line-height: 22px;
  font-weight: 500;
  font-size: 14px;
  color: $gray-06;
  height: 22px;
}
.empty-wrapper {
  .empty-title {
    margin-top: 40px;
  }
  .git-empty {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 20px;
    transition: box-shadow 0.3s;
    border-radius: 8px;
    &:hover {
      box-shadow: var(--card-hover-shadow, 1px 1px 4px 0px rgba(0, 0, 0, 0.13));
    }

    .title {
      line-height: 20px;
      font-size: 14px;
      color: $gray-08;
    }
    .way {
      text-align: left;
      line-height: 30px;
      font-size: 14px;
      color: #383838;
      margin-top: 22px;
      &:first-child {
        margin-top: 20px;
      }
    }
    .way-content {
      margin-top: 11px;
      margin-left: 28px;
      font-size: 14px;
      color: $gray-08;
      line-height: 20px;
      padding: 16px 20px;
      background: #fafafa;
      &.user-info {
        margin-top: 20px;
        margin-left: 0;
      }
    }
  }
  .empty-more {
    line-height: 22px;
    font-size: 14px;
    color: $gray-06;
    margin: 24px 0;
  }
}

// 模板选择下拉
.new-file-template-select {
  border: 1px solid var(--color-line1-1, #e8e8e8);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #fafafa;
  padding: 12px;
}

.go-repo-setting {
  color: $primary-brand;
  &:hover {
    color: $hover-brand;
  }
}
